package l2hc.loginserver.network.gameservercon.gspackets;

import l2hc.loginserver.accounts.Account;
import l2hc.loginserver.network.gameservercon.ReceivablePacket;

public class PointConnectionL extends ReceivablePacket
{
	private String accounts;
	private int point;
	
	@Override
	protected void readImpl()
	{
		accounts = readS();
		point = readD();
	}

	@Override
	protected void runImpl()
	{
		Account acc = new Account(accounts);
		acc.restore();
		acc.setPointL(point);
		acc.update();	
	}
}